pp108 : onrowselect Event (XGrid)

onrowselect Event (XGrid)


This event is executed when a row is selected.

Syntax

Inline HTML
<div cordysType="wcp.library.ui.XGrid" id="xgridId" onrowselect="handler()">
...
</div>
Event property xgridId.onrowselect = handler


Event Information

To invoke Navigate to a row using the mouse or keyboard keys. The row is highlighted.
Default Action Initiates any action associated with this event.


Event Object Properties


Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Property Description
businessObject XML node of the business object associated with the row.
data XML node that is the basis for the content in the XGrid.
getCells() Returns an array of cell objects.
getIndex() Returns the row index, where the first row has index=1.
row HTML node of the non-frozen part of the row.
rowData XML node of the rowData.
rowFreezeColumn HTML node of the frozen part of the row (if available).
selectType Denotes the method of row selection, either by
click or
keydown.
srcElement Refers to the HTML node of the cell that was selected and caused the event to be executed.


See Also


xgrid, getSelectedRow(), onrowcheck